<?php  
$id=$_GET['showPost'];
$sqlSelect="SELECT * FROM  tbl_post where post_id='$id'";
$recordSet =mysql_query($sqlSelect);
$data =@mysql_fetch_object($recordSet);

?>
<table width="100%" border="0">
  <tr>
    <td>&nbsp;</td>
    <td align="right" valign="top"><?php if($_SESSION['user_id_sess']) {?><A HREF="javascript:void(0)" onclick="window.open('sendowner.php?ownerid=<?php echo $data->posted_by;?>&jobid=<?php echo $id;?>&type=job','welcome','width=500,height=300')">Send Message</A><?php } else {?><A HREF="index.php?signin">Send Message</A><?php }?></td>
  </tr>
  <tr>
    <td width="35%"><table width="200" height="150" border="1">
      <tr>
        <td align="center"><img src="<?php if($data->post_image_sample ==""){ ?> images/noPhoto.gif <? } else { echo $data->post_image_sample; } ?>" border="0" width="200px" height="150px" ></td>
      </tr>
    </table></td>
    <td width="65%" valign="top"><?php echo $data->post_name;?></td>
  </tr>
  <tr>
    <td><p>Company:</p>    </td>
    <td><?php echo $data->post_company;?></td>
  </tr>
   <?php if($data->category_id=='2'){?>
  <tr>
    <td>Job Title:</td>
    <td><?php echo $data->post_name; ?></td>
  </tr>
  <?php }?>
  <tr>
    <td>Location:</td>
    <td><?php echo $data->post_location;?></td>
  </tr>
  <?php if($data->category_id=='2'){?>
  <tr>
    <td> Salary:</td>
    <td><?php echo $data->price;?></td>
  </tr>
 
  <tr>
    <td>Industry:</td>
    <td><?php echo getcategoryName($data->subcategory_id);?></td>
  </tr>
  <tr>
    <td>Experience:</td>
    <td><?php echo $data->post_experience;?></td>
  </tr>
   <tr>
    <td>Education:</td>
    <td><?php echo $data->education;?></td>
  </tr>
  <tr>
    <td>Contact Information:</td>
    <td>Contact:<?php echo $data->post_contact;?> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;    Phone:<?php echo $data->post_phone;?></td>
  </tr>
  <?php } ?>
  <?php if($data->category_id=='3' or $data->category_id=='4'){?>
  <tr>
    <td> Price:</td>
    <td><?php echo $data->price;?></td>
  </tr>
  <tr>
    <td>Bedrooms:</td>
    <td><?php echo $data->bedroom;?></td>
  </tr>
  <tr>
    <td>Bathrooms:</td>
    <td><?php echo $data->bathroom;?></td>
  </tr>
  <tr>
    <td>SQ Ft:</td>
    <td><?php echo $data->post_sqrt;?></td>
  </tr>
  <tr>
    <td>Year Built:</td>
    <td><?php echo $data->post_yearbuild;?></td>
  </tr>
  <tr>
    <td>Property Type:</td>
    <td><?php echo getcategoryName($data->subcategory_id);?></td>
  </tr>
  <?php }?>
  <?php if($data->category_id=='5' ){?>
  <tr>
    <td>service_type:</td>
    <td><?php echo $data->service_type;?></td>
  </tr>
  <?php }?>
  <tr>
    <td>Post Date:</td>
    <td><?php echo $data->posted_date;?></td>
  </tr>
  
  <tr>
    <td>Description:</td>
    <td><?php echo $data->post_description;?></td>
  </tr>
  </table>
